package com.lagou.consumer;

import com.lagou.common.service.UserService;

public class ClientBootStrap {

    public static  final String providerName="userService/sayHello";

    public static void main(String[] args) throws InterruptedException {

        RpcConsumer rpcConsumer = new RpcConsumer();
        UserService proxy = (UserService) rpcConsumer.createProxy(UserService.class, providerName);
        String result = proxy.sayHello("are you ok?");
        System.out.println(result);

    }




}
